from .base import Base
from sqlalchemy.types import Integer
from sqlalchemy.schema import Column
from sqlalchemy.databases import mysql

__all__ = ["ResultRecord"]

class ResultRecord(Base):

    __tablename__ = "results"

    id = Column(Integer, primary_key=True)
    uuid = Column(mysql.VARCHAR(36), nullable=False)
    result = Column(mysql.TEXT)

    def __init__(self, uuid, result=None):
        self.uuid = uuid
        self.result = result